// pages/peccancy/pay-success.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
    },
    onLoad: function(options) {
        this.setData(options)
        this.loadData()
    },
    loadData() {
        wx.showLoading({
            title: '加载中...',
        })
        getApp().http.post('rest/ticket/queryById.do', {
            data: this.data.id
        }).then(res => {
            this.setData(res.obj)
            wx.hideLoading()
        }).catch(err => {
            wx.hideLoading()
            getApp.wxToast.error(err.msg)
        })
    },
    callPhone() {
        wx.makePhoneCall({
			phoneNumber: this.data.quoteMember.mobile
        })
    },
    backindex() {
        wx.navigateBack({
            delta: 3
        })
    },
	onUnload: function () {
		wx.reLaunch({
			url: '../index'
		})
	},

})